package cn.iocoder.yudao.module.wine.api;

import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
import cn.iocoder.yudao.module.wine.api.dto.BusinessUserLogDTO;
import cn.iocoder.yudao.module.wine.dal.dataobject.businessuserlog.BusinessUserLogDO;
import cn.iocoder.yudao.module.wine.dal.mysql.businessuserlog.BusinessUserLogMapper;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;

import javax.annotation.Resource;

/**
 * @author zyc
 * @createDate 2024/6/5 10:09
 */
@Service
@Validated
public class BusinessUserLogApiImpl implements BusinessUserLogApi{

    @Resource
    private BusinessUserLogMapper businessUserLogMapper;
    @Override
    public void addLog(BusinessUserLogDTO businessUserLogDTO) {
        BusinessUserLogDO bean = BeanUtils.toBean(businessUserLogDTO, BusinessUserLogDO.class);
        businessUserLogMapper.insert(bean);

    }
}
